package com.ruoyi.recycle.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.recycle.domain.CommentManagement;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

/**
 * 咨询管理对象 consult_management
 *
 * @author Wubk
 * @date 2022-05-22
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ConsultManagementDTO {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 标题
     */
    private String name;

    /**
     * 海报
     */
    private String img;

    /**
     * 内容
     */
    private String detail;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date searchTimeBegin;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date searchTimeEnd;

    /** 分类 */
    @Excel(name = "分类")
    @ApiModelProperty(name = "type",value = "分类（用户自主填写）",dataType = "String")
    private String type;

    /** 点击量 */
    @ApiModelProperty(name = "clickRate", value = "点击量")
    private Integer clickRate;

    /**
     * 更新人
     */
    private String updatedBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedTime;

    private Integer currentPage = 1;

    private Integer pageSize = 10;

    private List<CommentManagement> commentManagementList;



}
